<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{saleLoanContractReceiptCancelBean.page}"/>
		<f:event type="preRenderView" listener="#{saleLoanContractReceiptCancelBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Sale Loan Contract Receipt Cancel entities"/>

	<ui:define name="header">
		Sale Loan Contract Receipt Cancel
	</ui:define>

	<ui:define name="subheader">
		Search Sale Loan Contract Receipt Cancel entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="saleLoanContractReceiptCancelBeanExampleSaleLoanContract" value="Sale Loan Contract:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{saleLoanContractBean.converter}" id="saleLoanContractReceiptCancelBeanExampleSaleLoanContract" value="#{saleLoanContractReceiptCancelBean.example.saleLoanContract}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanContractBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="saleLoanContractReceiptCancelBeanExampleSaleLoanContract" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractReceiptCancelBeanExampleOldReceiptByEmpNo" value="Old Receipt By Emp No:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractReceiptCancelBeanExampleOldReceiptByEmpNo" value="#{saleLoanContractReceiptCancelBean.example.oldReceiptByEmpNo}"/>
							<h:message for="saleLoanContractReceiptCancelBeanExampleOldReceiptByEmpNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractReceiptCancelBeanExampleNewReceiptCode" value="New Receipt Code:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractReceiptCancelBeanExampleNewReceiptCode" maxLength="50" value="#{saleLoanContractReceiptCancelBean.example.newReceiptCode}"/>
							<h:message for="saleLoanContractReceiptCancelBeanExampleNewReceiptCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractReceiptCancelBeanExampleCancelMemo" value="Cancel Memo:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractReceiptCancelBeanExampleCancelMemo" maxLength="500" value="#{saleLoanContractReceiptCancelBean.example.cancelMemo}"/>
							<h:message for="saleLoanContractReceiptCancelBeanExampleCancelMemo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="saleLoanContractReceiptCancelBeanExampleCancelByEmpNo" value="Cancel By Emp No:"/>
						<h:panelGroup>
							<h:inputText id="saleLoanContractReceiptCancelBeanExampleCancelByEmpNo" value="#{saleLoanContractReceiptCancelBean.example.cancelByEmpNo}"/>
							<h:message for="saleLoanContractReceiptCancelBeanExampleCancelByEmpNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{saleLoanContractReceiptCancelBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{saleLoanContractReceiptCancelBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="saleLoanContractReceiptCancelBeanPageItems" styleClass="data-table" value="#{saleLoanContractReceiptCancelBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sale Loan Contract"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractReceiptCancel/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSaleLoanContract" value="#{forgeview:display(_item.saleLoanContract)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Old Receipt By Emp No"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractReceiptCancel/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemOldReceiptByEmpNo" value="#{_item.oldReceiptByEmpNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="New Receipt Code"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractReceiptCancel/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemNewReceiptCode" value="#{_item.newReceiptCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cancel Memo"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractReceiptCancel/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCancelMemo" value="#{_item.cancelMemo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Cancel Dtm"/>
					</f:facet>
					<h:link outcome="/form/saleLoanContractReceiptCancel/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemCancelDtm" value="#{_item.cancelDtm}">
							<f:convertDateTime type="both"/>
						</h:outputText>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{saleLoanContractReceiptCancelBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
